<template>
  <div class="mTop">
    <div class="wCen">
      <div class="mTop_l">
        <div class="logo">
          <a href="###"><img src="@/assets/img/logo.svg" alt="" class="img" /></a>
        </div>
         <!-- 倒计时 -->
         <common-countdown />
      </div>
      <div class="mTop_r">
        <!-- 各个icon -->
        <div class="icons en">
          <!-- 中英文切换 -->
          <common-lang :width="50" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {},
  data() {
    return {
    };
  },
  computed: {
    
  },
  mounted() {},
  methods: {
  },
};
</script>

<style lang="scss" scoped>
.mTop {
background-color: #f3f5f766;
  .logo {
    $g:35px;
    $w:calc(154px + #{$g});
    display: flex;
    align-items: center;
    flex-direction: column;
    width: $w;
    flex: 0 0 $w;
    position: relative;
    border-right:1px solid rgba(0,0,0,0.1);
    padding-right: $g;
    margin-right: $g;

    .img {
      max-width: 100%;
      max-height: 100%;
    }
  }
  // 各个icon 搜索 手机端 语言 用户信息
  .icons {
    display: flex;
    align-items: center;
    height: 100%;

    // 搜索
    .search,
    .icons_mobile,
    .lang,
    .user {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 0px;
      height: 100%;

      .img {
        $w: 30px;
        width: $w;
        flex: 0 0 $w;
      }
    }

    .user {
      position: relative;
    }

    .search {
      position: relative;
      cursor: pointer;
      margin: 0 50px;
    }
  }
  .wCen {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 140px;
    overflow: visible;
  }
  &_l {
    display: flex;
    justify-content: flex-start;
  }
  @media (min-width:1441px) and (max-width: 1750px) {
    .wCen{
      height: 120px;
    }
  }
  @media screen and (min-width: 1281px) and (max-width: 1440px) {
    .wCen{
      height: 110px;
    }
  }
  @media screen and (min-width: 768px) and (max-width: 1280px) {
    .wCen{
      height: 110px;
      .icons{
        .search,
        .icons_mobile,
        .lang,
        .user {
          width: auto;
        }
      }
    }
  }
  @media (max-width: 767px) {}

  @media (min-width: 768px) and (max-width: 1560px) {
    .logo {
      flex: 0 0 150px;

      .txt {
        font-size: 12px;
        position: relative;
        top: -10px;
      }
    }
    // 各个icon 搜索 手机端 语言 用户信息
    .icons {
      .search,
      .icons_mobile,
      .lang,
      .user {
        width: 30px;

        .img {
          $w: 26px;
          width: $w;
          flex: 0 0 $w;
        }
      }
      &_mobile {
        .codeBox {
          top: 100px;
        }
      }
    }
  }
}
</style>
